package org.desktop.web.server.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonAutoDetect(fieldVisibility = Visibility.ANY)
public class Timer {

	@JsonProperty(value="idTimesheet")
	private String id;
	
	

	@JsonProperty(value = "start_time")
	@JsonFormat(shape = Shape.STRING, pattern = "HH:mm")
	private Date startTime;
	
	@JsonProperty(value = "end_time")
	@JsonFormat(shape = Shape.STRING, pattern = "HH:mm")
	private Date endTime;

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
